import instance from "@/utils/request";
// 查询企业目录
export function deptApi() {
    return instance({
        url: `/company/department`,
        post:'get'
    })
}
// 根据id删除部门详情
export function deletApi(id) {
    return instance({
        url: `/company/department/${id}`,
        method:'DELETE'
    })
}
// 
export function addDataApi(data) {
    return instance({
        url: `/company/department`,
        method: 'post',
        data
    })
}

// 编辑数据
export function getDeptDetailApi(id) {
    return instance({
        url: `/company/department/${id}`,
        method: 'get',
    })
}